package com.huluobo.high3videoproject.mvp.fullscreen.model;

import com.huluobo.high3videoproject.bean.CommentBeanResult;
import com.huluobo.high3videoproject.bean.FollowBean;
import com.huluobo.high3videoproject.bean.LikeBean;
import com.huluobo.high3videoproject.bean.SendCommentBeanResult;
import com.huluobo.high3videoproject.bean.VideoBeanResult;
import com.huluobo.high3videoproject.mvp.fullscreen.presenter.VideoFullscreenContract;
import com.huluobo.high3videoproject.mvp.video.presenter.VideoContract;
import com.huluobo.high3videoproject.net.BaseModel;

import io.reactivex.Observable;

public class VideoFullscreenModel extends BaseModel implements VideoFullscreenContract.Model {
    @Override
    public Observable<VideoBeanResult> getVideoList(int page, int size) {
        return apiService.getVideos(page, size);
    }

    @Override
    public Observable<FollowBean> followUser(String authname) {
        return apiService.follow(authname);
    }

    @Override
    public Observable<LikeBean> likeVideo(int videoId) {
        return apiService.likeVideo(videoId);
    }

    @Override
    public Observable<LikeBean> noLikeVideo(int videoId) {
        return apiService.noLikeVideo(videoId);
    }

    @Override
    public Observable<CommentBeanResult> getCommentList(int videoId) {
        return apiService.getCommentList(videoId);
    }

    @Override
    public Observable<CommentBeanResult> sendComment(String msg, int videoId) {
        return apiService.sendComment(msg, videoId);
    }
}
